package cn.edu.zucc.JavaChat.Response;

import cn.edu.zucc.JavaChat.Bean.User;

public class LoginResponse extends Response {

	private static final long serialVersionUID = -2221748657084681123L;
	
	private String username;
	private boolean success;
	private String message;
	private User userInfo;
	private String ip;
	
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public User getUserInfo() {
		return userInfo;
	}
	public void setUserInfo(User userInfo) {
		this.userInfo = userInfo;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	
	@Override
	public String toString(){
		return "username:" + username 
				+ ",success:" + success
				+ ",message:" + message;
	}

}
